package dianmobile.eistarandroid.network.request;

import java.util.Map;

public interface RequestCallback {

    /**
     * this method is running in the UI thread.
     * @param result the response data of the network request.
     * @param error if it equals null, the network request was success working.
     */
    void onResult(Map<String, Object> result, String error);
}
